package sanrenxing.dayEnd.backRepertoryTotal.domain;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 功能：债券信息实体类
 * 编写者：蒋玲苹
 * 日期：
 * 版本：1.0
 */
@Component
public class SecuritiesInformation implements Serializable {
    //债券编号
    private String bondId;
    //债券名称
    private String bondName;
    //债券类型
    private String bondType;
    //计息起始日
    private String beginInte;
    //计息结束日
    private String endInte;
    //票面利率
    private double coupRate;
    //付息次数
    private int noipNum;
    //债券利息
    private double bondInte;
    //票面金额
    private double parAmount;

    //默认构造方法
    public SecuritiesInformation() {
    }
    //带参数的构造方法
    public SecuritiesInformation(String bondId, String bondName, String bondType, String beginInte, String endInte, double coupRate, int noipNum, double bondInte, double parAmount) {
        this.bondId = bondId;
        this.bondName = bondName;
        this.bondType = bondType;
        this.beginInte = beginInte;
        this.endInte = endInte;
        this.coupRate = coupRate;
        this.noipNum = noipNum;
        this.bondInte = bondInte;
        this.parAmount = parAmount;
    }
    //set和get方法
    public String getBondId() {
        return bondId;
    }

    public void setBondId(String bondId) {
        this.bondId = bondId;
    }

    public String getBondName() {
        return bondName;
    }

    public void setBondName(String bondName) {
        if(bondName.trim().equals("")){
            this.bondName=null;
        }else
        this.bondName = bondName;
    }

    public String getBondType() {
        return bondType;
    }

    public void setBondType(String bondType) {
        if(bondType.trim().equals("")){
            this.bondType=null;
        }else
        this.bondType = bondType;
    }

    public String getBeginInte() {
        return beginInte;
    }

    public void setBeginInte(String beginInte) {
        this.beginInte = beginInte;
    }

    public String getEndInte() {
        return endInte;
    }

    public void setEndInte(String endInte) {
        this.endInte = endInte;
    }

    public double getCoupRate() {
        return coupRate;
    }

    public void setCoupRate(double coupRate) {
        this.coupRate = coupRate;
    }

    public int getNoipNum() {
        return noipNum;
    }

    public void setNoipNum(int noipNum) {
        this.noipNum = noipNum;
    }

    public double getBondInte() {
        return bondInte;
    }

    public void setBondInte(double bondInte) {
        this.bondInte = bondInte;
    }

    public double getParAmount() {
        return parAmount;
    }

    public void setParAmount(double parAmount) {
        this.parAmount = parAmount;
    }
}